import java.util.Scanner;
public class Lab07_Task01 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int i = s.nextInt();
        if (i < 1) {
            System.out.println("Number of marks must be greater then 0!!");
            System.exit(0);
        } else {
        }
        int j = 0;
        double[] marks = new double[i];
        double hm = 0;
        double lm = 100;
        double sum = 0;
        while (i>j) {
             marks[j] = s.nextDouble();
             if (marks[j]<0) {
                 System.out.println("Negative marks not allowed!!!");
                 System.exit(0);
             }
             if (marks[j]>100) {
                 System.out.println("Marks above 100% not allowed!!!");
                 System.exit(0);
             }
                 if (marks[j]>hm) {
                     hm = marks[j];
                 }
                 if (marks[j]<lm) {
                     lm = marks[j]; 
                 }
             sum = sum+marks[j];
             j++;
        }
        double avg = sum/j;
        System.out.println("Highest Mark = "+String.format("%.0f",hm)+"%");
        System.out.println("Lowest Mark = "+String.format("%.0f",lm)+"%");
        System.out.println("Average = "+String.format("%.0f",avg)+"%");
    }
}